package com.data.unityplugin_market.viewmodel

import android.app.Activity
import android.content.Context
import android.databinding.ObservableBoolean
import android.databinding.ObservableField
import android.view.View
import android.view.accessibility.AccessibilityManager
import android.widget.Toast
import com.data.unityplugin_market.base.BaseVM
import com.data.unityplugin_market.network.NetWorkConfig
import com.data.unityplugin_market.network.RetrofitService
import com.data.unityplugin_market.util.ToastUtil

public class ShoppingCartActVM:BaseVM{

    var context : Context ? = null

    constructor(context: Context) {
        this.context = context
    }


    /**
     * 总价
     */
    var total = ObservableField<String>();


    /**
     * 是否是编辑状态
     */
    var isModify = ObservableField<Boolean>(false);

    /**
     * 是否是全空
     */
    var isEmpty = ObservableField<Boolean>(false);

    /*
     * 所有长度
     */
    val allCount = ObservableField<String>()

    fun back(){
        (context as Activity).finish()
    }



     fun settlement() {


    }
}